package com.student.foodAfter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.student.foodAfter.entity.Userlog;
import com.student.foodAfter.entity.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ClassName: Userlog <br/>
 * Description: <br/>
 * date: 2023/1/16 10:49<br/>
 *
 * @author 李林雨 <br/>
 * @since JDK 8
 */
@Mapper
public interface UserlogMapper extends BaseMapper<Userlog> {

//    @Select(" select count(*) as  num,foodname from orderlist group by foodname order by num ; ")
//    List<Object> getEndFood2();
    @Select(" select * from userlog limit #{start},#{end};")
    List<Userlog> getList(@Param("start") int start,@Param("end") int end);
}
